<?php
include 'facebook.php';
include 'appinclude.php';

// set up facebook api
$facebook = new Facebook($GLOBALS["api_key"], $GLOBALS["api_secret"]);
$facebook->require_frame();
$user = $facebook->require_login();
?>

<fb:header>ScheduleMatch</fb:header>

<fb:tabs>
	<fb:tab-item href='index.php' title='Home' selected='false'/>
    <fb:tab-item href='classmates.php' title='Classmates' selected='false'/>
	<fb:tab-item href='settings.php' title='Settings' selected='false'/>
    <fb:tab-item href='invite.php' title='Invite Friends' selected='true'/>
</fb:tabs>


<div style="padding: 10px;">
  <fb:request-form method="post" action="index.php" content="<?php echo htmlentities("<fb:req-choice url=\"".$GLOBALS["full_canvas"]."/\" label=\"Add ScheduleMatch\" />"); ?>" type="ScheduleMatch" invite="true">
  <fb:multi-friend-selector actiontext="Invite Friends to share their schedules" rows="3"/>
  </fb:request-form>
</div>
<fb:header icon="false"><div align="center>"<a href="http://www.facebook.com/invite.php">Friends not on Facebook? Get them here!</a></div></fb:header>